package com.example.zhangguoqing.homeofpet;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

public class TipFragment extends Fragment{
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View view=LayoutInflater.from(getActivity()).inflate(R.layout.fragment_tip,null);
        return view;
    }
    public void setMenuVisibility(boolean menuVisibile){
        super.setMenuVisibility(menuVisibile);
        if(this.getView()!=null){
            this.getView().setVisibility(menuVisibile?View.VISIBLE:View.GONE);
        }
    }

}
